#pragma once

#define FLUSH_LINE 1

#define SIZE 1024

struct myFILE
{
	int flag;//刷新方式
	int fileno;//文件描述符
	char outbuffer[SIZE];//缓冲区
	int cap;
	int size;
};

typedef struct myFILE mFILE;

mFILE *mfopen(const char *filename, const char *mode);
int mfwrite(const void *ptr, int num, mFILE *stream);
void mfflush(mFILE *stream);
void mfclose(mFILE *stream);
